package com.master.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Heath.Que
 * @version 1.0
 * @classname
 * @description TODO
 * @Date 2021/5/8 10:55
 **/
@Configuration
@ConfigurationProperties(prefix = "admin")
public class AdminConfig {

    /**
     * 用户ID
     */
    @Value("${AdminConfig.userId}")
    private Long userId;

    /**
     * 用户账号
     */
    @Value("${AdminConfig.account}")
    private String account;

    /**
     * 用户账号
     */
    @Value("${AdminConfig.realName}")
    private String realName;

    /**
     * 用户账号
     */
    @Value("${AdminConfig.password}")
    private String password;

    /**
     * 用户账号
     */
    @Value("${AdminConfig.mobile}")
    private String mobile;

    /**
     * 用户账号
     */
    @Value("${AdminConfig.role}")
    private String role;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
